package org.springblade.tms.module.sap.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author yr
 * @date 2022/3/4 15:10
 * @desc 承运商基本信息
 */
@Data
@Validated
public class Carrier {
	/**
	 * 业务伙伴编码
	 */
	@NotBlank
	@ApiModelProperty(value = "业务伙伴编码")
	@JsonProperty("partner")
	private String tmId;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	@JsonProperty("name_org1")
	private String name;
	/**
	 * 地址-省份
	 */
	@ApiModelProperty(value = "地址-省份")
	@JsonProperty("region")
	private String addressProvince;
	/**
	 * 地址-市区
	 */
	@ApiModelProperty(value = "地址-市区")
	@JsonProperty("mc_city1")
	private String addressCity;
	/**
	 * 地址-街道
	 */
	@ApiModelProperty(value = "地址-街道")
	@JsonProperty("mc_street")
	private String adddressStreet;
	/**
	 * 电话
	 */
	@ApiModelProperty(value = "电话")
	@JsonProperty("tel_number")
	@NotBlank
	@Pattern(regexp = "^[0-9]{11}$",message = "手机号格式错误")
	private String phone;
}
